{{define "Title"}}更换产品条码{{end}}
{{define "Content"}}

<script type=text/javascript src="/js/enterKey.js"></script>

<div class="container-fluid">
<form class="form-horizontal" action="/ssnreplace" method="POST">
  <fieldset>
    <legend><b>更换产品条码</b></legend>
    {{if .error}}<div class="alert alert-error"><b>错误: </b>{{.error | html}}</div>
    {{else }}
      {{if .flash}}<div class="alert alert-success"><b>提示: </b>{{.flash | html}}</div>{{end}}
    {{end}}
    <div class="control-group">
      <label class="control-label">旧条码&nbsp;</label>
      <div class="control">
        <input type="text" class="input-large" id="oldssn" name="oldssn" style="font-weight: bold;background-color:#FFFFD0;text-transform:uppercase;" onkeydown="clicka();" maxlength="50"> <b style="color: red">*</b>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">新条码&nbsp;</label>
      <div class="control">
        <input type="text" class="input-large" id="newssn" name="newssn" style="font-weight: bold;background-color:#FFFFD0;text-transform:uppercase;" maxlength="50"> <b style="color: red">*</b>
      </div>
    </div>
    <div class="form-actions">
      <button type="submit" class="btn btn-primary">更换产品条码</button>
    </div>
  </fieldset>
</form>
</div>

{{end}}